﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FTradeCatheringListEasyUI.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.FTradeModel.FTradeCatheringListEasyUI" %>
<%--收款记录表--%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="../EasyUI/themes/default/easyui.css"/>
	<link rel="stylesheet" type="text/css" href="../EasyUI/themes/icon.css" />
	<script type="text/javascript" src="../js/jquery-1.7.2.min.js"></script>   
	<script type="text/javascript" src="../EasyUI/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="../EasyUI/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="../EasyUI/easyui-formatter_20140718.js"></script>
     <link href="../themes/css/jquery.autocomplete.css" rel="stylesheet" type="text/css" />
    <script src="../js/DWZ/jquery.autocomplete.js" type="text/javascript"></script>
    <script src="../js/DWZ/jquery.inputValue.js" type="text/javascript"></script>
    <script type="text/javascript">
        ///自适应宽高
       $(window).resize(function(){		    
             $("#ftr_easyui_tabs").tabs({
                tabPosition:"bottom",
                 width: '100%',
                 height: $(parent.document).find(".tabsPageContent").height()-5> 0 ? $(parent.document).find(".tabsPageContent").height()-5  : 500,
            });  
            $("#tab_list").datagrid({
                    width: '100%',
                    height: $("#ftr_easyui_tabs").height()-35,
             }); 
             $("#ftradecatheringiframe").css("height",$("#ftr_easyui_tabs").height()-35);
	    });
        //权限处理
        var $powers={
            "r查看":<%=HasPowerEasyUI(IHISCETeim.Web.Permission.查看) %>,
            "r新增":<%=HasPowerEasyUI(IHISCETeim.Web.Permission.新增) %>,
            "r修改":<%=HasPowerEasyUI(IHISCETeim.Web.Permission.修改) %>,
            "r删除":<%=HasPowerEasyUI(IHISCETeim.Web.Permission.删除) %>,
            "r导出":<%=HasPowerEasyUI(IHISCETeim.Web.Permission.导出) %> ,
            "r冲帐":<%=HasPowerEasyUI(IHISCETeim.Web.Permission.应收帐款_冲帐) %>      
        };
         var $tabpanle2_isload=0;
        $(document).ready(function () {
          
            $("#ftr_easyui_tabs").tabs({
                 tabPosition:"bottom",
                 width: '100%',
                 height: $(parent.document).find(".tabsPageContent").height()-5  > 0 ? $(parent.document).find(".tabsPageContent").height()-5  : 500,
                 onSelect:function(title,index){
                   // alert(index);
                   if(index==1 && $tabpanle2_isload==0)
                   {
                      // InitGird2(); 
                      $tabpanle2_isload=1;
                      $("#ftradecatheringiframe").attr("src","FTradeCatheringListEasyUI2.aspx").css("height",$("#ftr_easyui_tabs").height()-35);
                   }
                 }
            });    

             //权限处理
            var $tab_toolbar=$("#tab_toolbar");
            $tab_toolbar.find("a").each(function(){
                var $per=$(this).attr("Permission");
                var pt= $powers[$per]==undefined || null?true:$powers[$per];
                $(this).linkbutton(pt?'enable': 'disable');
               
                if($(this).attr("menu")!=undefined && (pt==false))
                {
                    $(this).menubutton({
					    disabled:true
				    });
                }
                 
            })

            //自动完成
            $(".autocomplete").each(function () {
                var $this = $(this);
                var url = unescape($this.attr("autocompletehref"));
                $this.autocomplete(url);
            });

             //资金走向日期选择           
            $('#FTradeCatheringListEasyUIExportDialog').dialog({
				buttons:[{
					text:'确定导出',
					iconCls:'icon-ok',
                    plain:"true" ,
					handler:function(){
						var href = "<%= ExportExcelWebUrl%>/FTradeModel/FTradeExportZJZXSM.aspx?"+ jQuery.param($("#FTradeCatheringListEasyUIExportDialog").serializeJSON());;
                        top.window.open(href, "");
                        $('#FTradeCatheringListEasyUIExportDialog').dialog('close');
					}
				},{
					text:'关闭',
                    plain:"true" ,
					handler:function(){
						$('#FTradeCatheringListEasyUIExportDialog').dialog('close');
					}
				}]
			});
            $('#FTradeCatheringListEasyUIExportDialog').dialog('close');
            //收款收据日期选择           
            $('#FTradeCatheringListEasyUIExportDialogSKSJ').dialog({
                buttons:[{
                    text:'确定导出',
                    iconCls:'icon-ok',
                    plain:"true" ,
                    handler:function(){
                        var href = "<%= ExportExcelWebUrl%>/FTradeModel/FTradeExportSKSJ.aspx?"+ jQuery.param($("#FTradeCatheringListEasyUIExportDialogSKSJ").serializeJSON());;
					    top.window.open(href, "");
					    $('#FTradeCatheringListEasyUIExportDialogSKSJ').dialog('close');
					}
				},{
				    text:'关闭',
				    plain:"true" ,
				    handler:function(){
				        $('#FTradeCatheringListEasyUIExportDialogSKSJ').dialog('close');
				    }
				}]
            });
            $('#FTradeCatheringListEasyUIExportDialogSKSJ').dialog('close');
            //融资结算书
             $('#FTradeCatheringListEasyUIExportRZDialog').dialog({
				buttons:[{
					text:'确定导出',
					iconCls:'icon-ok',
                    plain:"true" ,
					handler:function(){
						var href = "<%= ExportExcelWebUrl%>/FTradeModel/FTradeExportRZZRKZJQRS.aspx?"+ jQuery.param($("#FTradeCatheringListEasyUIExportRZDialog").serializeJSON());;
                        top.window.open(href, "");
                        $('#FTradeCatheringListEasyUIExportRZDialog').dialog('close');
					}
				},{
					text:'关闭',
                    plain:"true" ,
					handler:function(){
						$('#FTradeCatheringListEasyUIExportRZDialog').dialog('close');
					}
				}]
			});
            $('#FTradeCatheringListEasyUIExportDialog').dialog('close');
              function checkPrice(price){
                 return (/^(([0-9]\d*)|\d)(\.\d{1,2})?$/).test(price.toString());
              }
            ///取消备注 
             $('#FTradeCatheringListEasyUIDeleteDialog').dialog({
				buttons:[{
					text:'确定取消',
					iconCls:'icon-ok',
                    plain:"true" ,
					handler:function(){
                        var row = $('#tab_list').datagrid('getSelected')
                        var $remark=$("#FTradeCatheringListEasyUIDeleteDialogRemark").val();
                       
                        var $DongJieJinE=$("#FTradeCatheringListEasyUIDeleteDialogDongJieJinE").val();

//                        if(checkPrice($DongJieJinE)==false)
//                        {
//                            alert("请输入正常的取消金额");
//                            return false;
//                        }

                        
//                        if(parseFloat($DongJieJinE)<0)
//                        {
//                            alert("取消金额必需大于等于0");
//                            return false;
//                        }
                        
                        
                        if(parseFloat($DongJieJinE)>parseFloat(row.ShengYuJinE))
                        {
                            alert("最多只能取消"+row.ShengYuJinE+"元");
                            return false;
                        }

						//var FTradeID = row.FTradeID;
                        var url = "sysAjaxDone.ashx?ajaxmethod=deleteftradecathering&FCatheringId=" + row.FCatheringId+"&remark="+encodeURI($remark)+"&DongJieJinE="+$DongJieJinE;                       
                        $("#tab_list").datagrid("load"); 
                        top.ajaxTodo(url, "");
                        $('#FTradeCatheringListEasyUIDeleteDialog').dialog('close');
                        $('#tab_list').datagrid('unselectAll')//取消选中,不然会直接选中上次的数据
					}
				},{
					text:'关闭',
                    plain:"true" ,
					handler:function(){
						$('#FTradeCatheringListEasyUIDeleteDialog').dialog('close');
					}
				}]
			});
            $('#FTradeCatheringListEasyUIDeleteDialog').dialog('close');
            $("#FTradeCatheringListEasyUIDeleteDialogDongJieJinE").inputFloat();
            //加载数据
            InitGird();           
        })
        //加载列表数据
        function InitGird() {
            $('#tab_list').datagrid({               
                url: location.href, //请求数据的页面
                sortName: 'FCatheringId', //排序字段
                sortOrder: 'desc', //排序类型
                idField: 'FCatheringId', //标识字段,主键
                iconCls: '', //标题左边的图标
                width: '100%', //宽度    
                height:$("#ftr_easyui_tabs").height()-35,
                nowrap: false, //是否换行，True 就会把数据显示在一行里
                striped: true, //True 奇偶行使用不同背景色
                collapsible: false, //可折叠
                singleSelect: true, //是否只能选中一条
                remoteSort: true, //定义是否从服务器给数据排序
                frozenColumns: [[//冻结的列，不会随横向滚动轴移动
                    { title: '来源', field: 'SourceTag', width: 60, align:'center' },
                    {title:'经销商',field:'JingXiaoShang',width: 80,sortable:true,formatter:function(value, row, index){
                         if(value==undefined)
                                return "合计:";
                        return value;
                    }},    
                    {title: '收款日期', field: 'ShoukuanRiQi', width: 70,formatter:formatterdate ,sortable: true},
                    {title: '金额', field: 'JinE', width: 80 ,sortable: true,formatter:function(value, row, index){
                            if(value==undefined)
                                return"";
                            if(row.SourceTag==undefined)
                                return value;
                            return '<a href="#"  title="查看资金最后走向" onclick="onFTradeCatheringLastChonZhiClick(\''+row.FCatheringId+'\',\''+row.FCTitle+'\'); return false;">'+milliformatter(value,2)+'</a>';//事件处理
                        }
                    },
                    {title: '款项类型', field: 'KuanXiangLeiXing', width: 70, align:'center', sortable: true}            	
                    
				]],
                columns: [[                   
                    { title: '剩余金额', field: 'ShengYuJinE', width: 90, sortable: true,formatter:milliformatter },
                    { title: '状态', field: 'State', width: 70, sortable: true, align:'center', styler:function(value, row, index){
                            if(value=="未冲完")
                                return "color:green;"
                            if(value=="不可用")
                                return "color:red;"
                            if(value=="取消")
                                return "color:red;"
                            if(value=="已冲完")
                                return "color:block;"
                        }
                    },
                     { title: '冻结金额', field: 'DongJieJinE', width: 90, sortable: true,formatter:milliformatter },
                    {title: '调帐', field: 'IsAdjustable', width: 60, sortable: true, align:'center', formatter:function(value, row, index){
                            if(value==undefined)
                                return"";
                            if(row.IsAdjustable)
                            {
                                return '是';//事件处理
                                //return '<a href="#"  title="查看调帐关联信息" onclick="onFTradeCatheringHistoryClick(\''+row.FCatheringId+'\',\''+row.FCTitle+'\'); return false;">是</a>';//事件处理
                            }
                            else
                            {                               
                                return "否";
                            }
                        }
                     },
                    { title: '添加人', field: 'RealName', width: 80, sortable: true },
                    { title: '标题', field: 'FCTitle', width:300, sortable: true,formatter:function(value, row, index){
                            if(value==undefined)
                                return"";
                            return '<a href="#"  title="查看冲帐明细信息" onclick="onViewClick(\''+row.FCatheringId+'\'); return false;">'+value+'</a>';//事件处理
                        }
                    },
                    {
                        title: '备注',field: 'Remark', width:300
                    },
                    {
                        title: '资金来源',field: 'MoneyFrom', width:100
                    }
                ]],
                toolbar: "#tab_toolbar",
                queryParams: { "action": "query" },
                pagination: true, //是否开启分页
                pageNumber: 1, //默认索引页
                pageSize: <%=numPerPage %>, //默认一页数据条数
                pageList:<%=SetnumPerPage() %>,
                rownumbers: true, //行号
                showFooter: true,
                rowStyler:function(index,row)
                {
                    if(row.State=="不可用")
                        return  "background:#cca;";  
                }
            });

        }       
       
        /*每行的操作处理*/
       
        
    </script>
    <script>
        //操作功能JS

        //打开高级查找窗口
        function onAdjSearch() {
            $("#tab_search").dialog("open");
            $("#search-buttons").find("#btn_search").one("click", function () {
                var query = $("#tab_search").serializeJSON(); // GetInputData("tab_search", "query");
                query.action = "query";
                $('#tab_list').datagrid("options").queryParams = query;
                $('#tab_list').datagrid('load');
                $("#tab_search").dialog("close");
                return false;

            });
        }
        //添加
        function onAddClick() {

            var rel = "FTradeCatheringAdd";
            var url = "FTradeModel/FTradeCatheringAdd.aspx";
            var title = "添加收款记录";
            var options = { width: 850, height: 300, max: false, mask: true, maxable: false, minable: false, fresh: true, resizable: false, drawable: true };
            top.$.pdialog.open(url, rel, title, options);
            //top.navTab.openTab(rel, url, { title: title, fresh: true, external: false });
            return false;
        }

        //修改，通过工具栏
        function onEditClick() {

            var row = $('#tab_list').datagrid('getSelected')
            if (row == null) {
                $.messager.alert('提示', '请先选择要修改的收帐记录');
                return false;
            }
            if (row.State == "取消") {
                top.alertMsg.error("对不起,此款项已[" + row.State + "]不能进行此操作.")
                return false;
            }

            var FCatheringId = row.FCatheringId;
            var rel = "FTradeCatheringEdit";
            var url = "FTradeModel/FTradeCatheringEdit.aspx?FCatheringId=" + FCatheringId;
            var title = "修改收帐记录";
            var options = { width: 850, height: 300, max: false, mask: true, maxable: false, minable: false, fresh: true, resizable: false, drawable: true };
            top.$.pdialog.open(url, rel, title, options);
            // top.navTab.openTab(rel, url, { title: title, fresh: true, external: false });
            $('#tab_list').datagrid('unselectAll')//取消选中,不然会直接选中上次的数据
            return false;
        }
        //冲帐操作
        function onBalanceClick() {
            var row = $('#tab_list').datagrid('getSelected')
            if (row == null) {
                $.messager.alert('提示', '请先选择要冲帐的收帐记录');
                return false;
            }

            if (row.State != "未冲完") {
                top.alertMsg.error("对不起,此款项已[" + row.State + "]不能进行此操作.")
                return false;
            }

            var FCatheringId = row.FCatheringId;
            var rel = "FTradeBalanceAdd";
            var url = "FTradeModel/FTradeBalanceAdd.aspx?FCatheringId=" + FCatheringId;
            var title = "冲帐";
            var options = { width: 850, height: 450, max: false, mask: true, maxable: false, minable: false, fresh: true, resizable: false, drawable: true };
            //top.$.pdialog.open(url, rel, title, options);
            top.navTab.openTab(rel, url, { title: title, fresh: true, external: false });
            $('#tab_list').datagrid('unselectAll')//取消选中,不然会直接选中上次的数据
            return false;
        }

        //冲帐记录
        function onViewClick(FCatheringId) {
            var rel = "FTradeCatheringBalance";
            var url = "FTradeModel/FTradeCatheringBalanceView.aspx?FCatheringId=" + FCatheringId;
            var title = "查看冲帐记录";
            var options = { width: 850, height: 450, max: false, mask: true, maxable: false, minable: false, fresh: true, resizable: false, drawable: true };
            top.$.pdialog.open(url, rel, title, options);
            //top.navTab.openTab(rel, url, { title: title, fresh: true, external: false });
            return false;
        }
        //取消
        function onDelClick() {

            var row = $('#tab_list').datagrid('getSelected')
            if (row == null) {
                $.messager.alert('提示', '请先选择要取消的冲帐记录');
                return false;
            }
            var FCatheringId = row.FCatheringId;
            if (row.DongJieJinE <= 0 && row.ShengYuJinE <= 0) {
                top.alertMsg.error("对不起,此款项已没有冻结金额 或 剩余金额,不能进行此操作.")
                return false;
            }
            //弹出取消备注
            $("#FTradeCatheringListEasyUIDeleteDialogDongJieJinEOld").html(row.DongJieJinE == "" ? "0" : row.DongJieJinE);
            $('#FTradeCatheringListEasyUIDeleteDialogRemark').val(row.Remark);
            $('#FTradeCatheringListEasyUIDeleteDialog').dialog('open');

            return false;
        }

        function onDelALLClick() {
            var row = $('#tab_list').datagrid('getSelected')
            if (row == null) {
                $.messager.alert('提示', '请先选择要删除的冲帐记录');
                return false;
            }
            var FCatheringId = row.FCatheringId;
            if (row.State == "已冲完") {
                top.alertMsg.error("对不起,此款项已[" + row.State + "]不能进行此操作.")
                return false;
            }
            $('#tab_list').datagrid('unselectAll')//取消选中,不然会直接选中上次的数据
            $.messager.confirm('提示', '您确认要删除此应收帐款记录吗？', function (r) {
                if (r) {

                    var url = "sysAjaxDone.ashx?ajaxmethod=deleteftradecatheringall&FCatheringId=" + FCatheringId;
                    top.ajaxTodo(url, "");
                    $("#tab_list").datagrid("load");
                }
            });
        }

        //查看调帐关联信息
        function onFTradeCatheringHistoryClick(OldFCatheringId, FCTitle) {
            var rel = "FTradeCatheringListEasyUI_taozhan";
            var url = "FTradeModel/FTradeCatheringListEasyUI.aspx?FCatheringId=" + OldFCatheringId;
            var title = FCTitle+"的调帐历史";
            var options = { width: 850, height: 450, max: false, mask: true, maxable: false, minable: false, fresh: true, resizable: false, drawable: true };
            //top.$.pdialog.open(url, rel, title, options);
            top.navTab.openTab(rel, url, { title: title, fresh: true, external: true });
            return false;
        }
        //查看资金最后走向
        function onFTradeCatheringLastChonZhiClick(FCatheringId, FCTitle) {
            var rel = "FTradeCatheringLastChonZhi";
            var url = "FTradeModel/FTradeCatheringLastChonZhi.aspx?FCatheringId=" + FCatheringId;
            var title = "查看 " + FCTitle+" 最后充帐结果";
            var options = { width: 850, height: 450, max: false, mask: true, maxable: false, minable: false, fresh: true, resizable: false, drawable: true };
            top.$.pdialog.open(url, rel, title, options);
            //top.navTab.openTab(rel, url, { title: title, fresh: true, external: false });
            return false;
        }
        //导出资金走向说明
        function onExportZiJI() {

            $('#FTradeCatheringListEasyUIExportDialog').dialog('open');
        }
        //导出收款收据
        function onExportSKSJ() {

            $('#FTradeCatheringListEasyUIExportDialogSKSJ').dialog('open');
        }
        function onExportShuoKuan()
        {
            var query = $("#tab_search").serializeJSON();

            var href = "<%= ExportExcelWebUrl%>/FTradeModel/FTradeCatheringList.aspx?" + jQuery.param(query);
            top.window.open(href, "");
            return false;
        }
        //融资租赁款结算确认书
        function onExportRZ() {
//            var href = "<%= ExportExcelWebUrl%>/FTradeModel/FTradeExportRZZRKZJQRS.aspx";
//            top.window.open(href, "");

            $('#FTradeCatheringListEasyUIExportRZDialog').dialog('open');
        }
        //汇总表单元格链接
        function tab2_onClickCell(JingXiaoShang, _KuanXiangLeiXing, _fdate, _tdate) {
            var $tab_search = $("#tab_search");
            $tab_search.find("input[name='JingXiaoShang']").val(JingXiaoShang);
            $tab_search.find("select[name='KuanXiangLeiXing']").val(_KuanXiangLeiXing);
            $tab_search.find("input[name='ShoukuanRiQiFrom']").val(_fdate);
            $tab_search.find("input[name='ShoukuanRiQiTo']").val(_tdate);
                                
            var query = $tab_search.serializeJSON(); // GetInputData("tab_search", "query");
            query.action = "query";
            $('#tab_list').datagrid("options").queryParams = query;
            $('#tab_list').datagrid('load');
            $("#tab_search").dialog("close");
            $("#ftr_easyui_tabs").tabs("select", 0)
        }
    </script>
</head>
<body style="margin:2px;" >
<div id="ftr_easyui_tabs" class="easyui-tabs" data-options="tabPosition:'bottom'" >
<div title="收款及冲帐明细表" style="padding:0px">
    <div id="tab_list"></div>
    <div id="tab_toolbar" style="padding:2px;">
        <span style="line-height:26px;width:60px; font-weight:bold; color:Red; "><%=base.GetLastUpdate("FTradeCatheringListEasyUI") %></span>
       <a href="#" title="高级查找" class="easyui-linkbutton" iconcls="icon-search" plain="true" onclick="return　onAdjSearch(this);" Permission="">查找</a>
       <a href="#" title="添加收款记录" class="easyui-linkbutton" iconcls="icon-add" plain="true" onclick="return 　onAddClick()" Permission="r新增">收款</a>
       <a href="#"  class="easyui-linkbutton" iconcls="icon-add" plain="true" onclick="return onBalanceClick();" Permission="r冲帐">冲帐</a>
       <a href="#" title="修改基本信息" class="easyui-linkbutton" iconcls="icon-save" plain="true" onclick="return　onEditClick();" Permission="r修改">修改</a>
       <a href="#" title="取消" class="easyui-linkbutton" iconcls="icon-remove" plain="true" onclick="return　onDelClick();" Permission="r删除">取消</a> 
       <a href="#" title="删除" class="easyui-linkbutton" iconcls="icon-remove" plain="true" onclick="return　onDelALLClick();" Permission="r删除">删除</a> 
       <a href="#"  id="btnExportMain"  class="easyui-menubutton" iconcls="icon-btnDown" menu="#FTradeCatheringListEasyUIExportMenu" plain="true"  Permission="r导出">导出</a>
    </div>   

    <div id="FTradeCatheringListEasyUIExportDialog" icon="icon-save" title="选择资金走向日期"  style="padding:5px;width:400px;height:180px;" modal="true" closed="true">
		<p>请选择要导出的资金走向日期(收款日期)区间：</p>
		<p>
            从<input name="DateFrom" class="easyui-datebox" type="text" value="" />
            到<input name="DateTo" type="text" class="easyui-datebox" value="" />
        </p>		
	</div>
     <div id="FTradeCatheringListEasyUIExportDialogSKSJ" icon="icon-save" title="选择日期"  style="padding:5px;width:400px;height:180px;" modal="true" closed="true">
		<p>请选择要导出的日期(收款日期)区间：</p>
		<p>
            从<input name="DateFrom" class="easyui-datebox" type="text" value="" />
            到<input name="DateTo" type="text" class="easyui-datebox" value="" />
        </p>		
	</div>
    <div id="FTradeCatheringListEasyUIExportRZDialog" icon="icon-save" title="选择记账日期"  style="padding:5px;width:400px;height:180px;" modal="true" closed="true">
		<p>请选择要导出的记账日期区间：</p>
		<p>
            从<input name="DateFrom" class="easyui-datebox" type="text" value="" />
            到<input name="DateTo" type="text" class="easyui-datebox" value="" />
        </p>		
	</div>

    <div id="FTradeCatheringListEasyUIDeleteDialog" icon="icon-save" title="取消(冻结)金额备注"  style="padding:5px;width:400px;height:210px;" modal="true" closed="true">
       <table>
        <tr>
            <th>已取消金额:</th><td> <span id="FTradeCatheringListEasyUIDeleteDialogDongJieJinEOld" readonly  >0</span></td>
        </tr>
        <tr>
            <th>取消金额:</th><td> <input name="DongJieJinE" id="FTradeCatheringListEasyUIDeleteDialogDongJieJinE" value="0"/></td>
        </tr>
        <tr>
            <th>取消原因:</th><td> <textarea id="FTradeCatheringListEasyUIDeleteDialogRemark"  style="font-size:11px;"cols="25" rows="3" ></textarea></td>
        </tr>
        <tr>
            <td colspan="2">注:取消(冻结)金额每次都是累加的.</td>
        </tr>
       </table>
	</div>
    <div id="FTradeCatheringListEasyUIExportMenu" style="width:150px;">  
            <div iconCls="icon-ok" onclick="return onExportShuoKuan();">导出收款清单</div>  
            <div iconCls="icon-ok" onclick="return onExportZiJI();">资金走向说明</div>  
            <div iconCls="icon-ok" onclick="return onExportRZ();">融资租赁款结算确认书</div>  
            <div iconCls="icon-ok" onclick="return onExportSKSJ();">收款收据</div>  
    </div>

    <div id="tab_search" title="查询条件" style=" height:250px; width:500px;" class="easyui-dialog" modal="true" closed="true" buttons="#search-buttons">
        <table class="table_search" width="100%" style=" line-height:21px;">
            <tr>
                <td>经销商:</td>
                <td colspan="3">
               
                <input  name="JingXiaoShang"  class="autocomplete" autocompletehref="<%=AutoCompleteRequestUrl %>?ajaxmethod=getagentlist" mustMatch="true" swidth="300" showinputid=""/>
                </td>
            </tr>
            <tr>
                <td>款项类型:</td>
                <td>
                    <select name="KuanXiangLeiXing">
                        <option value="" selected>请选择...</option>
                        <option value="电汇">电汇</option>
                        <option value="汇票">汇票</option>
                        <option value="融资">融资</option>
                        <option value="维修费">维修费</option>
                        <option value="展会费">展会费</option>
                        <option value="返利">返利</option>
                        <option value="其他">其他</option>
                        <option value="调帐">调帐</option>
                    </select>
                </td>
                <td>
                    状态:                    
                </td>
                <td>
                    <select name="State">
                        <option value="" selected>请选择...</option>
                        <option value="未冲完">未冲完</option>
                        <option value="已冲完">已冲完</option>
                        <option value="不可用">不可用</option>
                        <option value="取消">取    消</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td>
                    收款日期：
                </td>
                <td  colspan="3">                    
                    从<input name="ShoukuanRiQiFrom" class="easyui-datebox" type="text" value="" />
                    到<input name="ShoukuanRiQiTo" type="text" class="easyui-datebox" value="" />
                </td>
            </tr>
              <tr>
                <td>
                    记帐日期：
                </td>
                <td  colspan="3">                    
                    从<input name="CreateDateFrom" class="easyui-datebox" type="text" value="" />
                    到<input name="CreateDateTo" type="text" class="easyui-datebox" value="" />
                </td>
            </tr>
        </table>
        <div id="search-buttons" style=" ">
            <a id="btn_search" href="javascript:;" class="easyui-linkbutton" iconcls="icon-search" plain="true">提交</a> 
            <a href="javascript:;" class="easyui-linkbutton" onclick="$('#tab_search').dialog('close');return false;" iconcls="icon-cancel" plain="true">取消</a>
        </div>
    </div>

</div>
<div title="经销商回款明细表" data-options="closable:false" style="overflow:hidden;padding:0px">
	<iframe id="ftradecatheringiframe" scrolling="yes" frameborder="0"  src="" style="width:100%;height:100%;"></iframe>
</div>
</div>   
</body>
</html>